package com.lagou.service;

import com.lagou.pojo.LagouAuthCode;
import com.lagou.service.fallback.CodeServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author : liuchangling
 * @Descrition :
 * @Date： Created in 8:49 下午 2022/1/31
 */
@Primary
@FeignClient(name = "lagou-service-code", path = "/code", fallback = CodeServiceFallback.class)
public interface CodeServiceFeignClient {
    @RequestMapping(value = "/validate/{email}/{code}", method = RequestMethod.GET)
    Integer validate(@PathVariable("email") String email, @PathVariable("code") String code);
}
